package com.dawnling.freetypedemo.freetype;

public class FreeTypeConstants {

	public static enum FT_Render_Mode {
		FT_RENDER_MODE_NORMAL,
		FT_RENDER_MODE_LIGHT,
		FT_RENDER_MODE_MONO,
		FT_RENDER_MODE_LCD,
		FT_RENDER_MODE_LCD_V,

		FT_RENDER_MODE_MAX
	}

	public static enum FT_Size_Request_Type {
		FT_SIZE_REQUEST_TYPE_NOMINAL,
		FT_SIZE_REQUEST_TYPE_REAL_DIM,
		FT_SIZE_REQUEST_TYPE_BBOX,
		FT_SIZE_REQUEST_TYPE_CELL,
		FT_SIZE_REQUEST_TYPE_SCALES,

		FT_SIZE_REQUEST_TYPE_MAX
	};

	public static enum FT_Kerning_Mode {
		FT_KERNING_DEFAULT,
		FT_KERNING_UNFITTED,
		FT_KERNING_UNSCALED
	}
	
	/* FT_LOAD_XXX (Load Char flags) */
	public static final int FT_LOAD_DEFAULT                     = 0x0;
	public static final int FT_LOAD_NO_SCALE                    = (1 << 0);
	public static final int FT_LOAD_NO_HINTING                  = (1 << 1);
	public static final int FT_LOAD_RENDER                      = (1 << 2);
	public static final int FT_LOAD_NO_BITMAP                   = (1 << 3);
	public static final int FT_LOAD_VERTICAL_LAYOUT             = (1 << 4);
	public static final int FT_LOAD_FORCE_AUTOHINT              = (1 << 5);
	public static final int FT_LOAD_CROP_BITMAP                 = (1 << 6);
	public static final int FT_LOAD_PEDANTIC                    = (1 << 7);
	public static final int FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH = (1 << 9);
	public static final int FT_LOAD_NO_RECURSE                  = (1 << 10);
	public static final int FT_LOAD_IGNORE_TRANSFORM            = (1 << 11);
	public static final int FT_LOAD_MONOCHROME                  = (1 << 12);
	public static final int FT_LOAD_LINEAR_DESIGN               = (1 << 13);
	public static final int FT_LOAD_NO_AUTOHINT                 = (1 << 15);
	public static final int FT_LOAD_COLOR                       = (1 << 20);
	public static final int FT_LOAD_COMPUTE_METRICS             = (1 << 21);
	
	/* FT_FSTYPE_XXX (FSType flags)*/
	public static final int  FT_FSTYPE_INSTALLABLE_EMBEDDING        = 0x0000;
	public static final int  FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING = 0x0002;
	public static final int  FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING  = 0x0004;
	public static final int  FT_FSTYPE_EDITABLE_EMBEDDING           = 0x0008;
	public static final int  FT_FSTYPE_NO_SUBSETTING                = 0x0100;
	public static final int  FT_FSTYPE_BITMAP_EMBEDDING_ONLY        = 0x0200;
	
	/* FT_Encoding */
	public static final int FT_ENCODING_NONE           = 0x0;
	public static final int FT_ENCODING_MS_SYMBOL      = 1937337698; // s y m b
	public static final int FT_ENCODING_UNICODE        = 1970170211; // u n i c
	public static final int FT_ENCODING_SJIS           = 1936353651; // s j i s
	public static final int FT_ENCODING_GB2312         = 1734484000; // g b    
	public static final int FT_ENCODING_BIG5           = 1651074869; // b i g 5
	public static final int FT_ENCODING_WANSUNG        = 2002873971; // w a n s
	public static final int FT_ENCODING_JOHAB          = 1785686113; // j o h a
	public static final int FT_ENCODING_ADOBE_STANDARD = 1094995778; // A D O B
	public static final int FT_ENCODING_ADOBE_EXPERT   = 1094992453; // A D B E
	public static final int FT_ENCODING_ADOBE_CUSTOM   = 1094992451; // A D B C
	public static final int FT_ENCODING_ADOBE_LATIN_1  = 1818326065; // l a t 1
	public static final int FT_ENCODING_OLD_LATIN_2    = 1818326066; // l a t 2
	public static final int FT_ENCODING_APPLE_ROMAN    = 1634889070; // a r m n
}